package com.yuanchu.search.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 商品查询参数dto
 * @date: 2023-12-19 18:37
 */
@ApiModel(value = "商品查询参数dto")
@Data
@ToString
public class QueryGoodsParamsDto implements Serializable {

    @ApiModelProperty("当前页码")
    private Integer page = 1;

    @ApiModelProperty("每页记录数默认值")
    private Integer pageSize = 20;

    // listType: all        显示所有
    // listType: on_sale    出售中(商品状态status(10上架 20下架))
    // listType: off_sale   已下架(商品状态status(10上架 20下架))
    // listType: sold_out   已售完(商品库存总量stockTotal)
    @ApiModelProperty("销售状态")
    private String listType;
    //名称
    @ApiModelProperty("商品名称")
    private String goodsName;
    //商品编码
    @ApiModelProperty("商品编码")
    private String goodsNo;
    @ApiModelProperty("排序方式")
    private String sortType;
    // 商品分类
    @ApiModelProperty("商品分类")
    private Integer categoryId = 0;
    @ApiModelProperty("排序价格")
    private Integer sortPrice;
}
